package com.rustic.server.vo;

import cn.hutool.core.bean.BeanUtil;
import com.rustic.server.po.TravelPlan;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class TravelPlanAuditResultsVO {

    /**
     * 自增ID
     */
    @ApiModelProperty(value = "自增ID", dataType = "Integer")
    private Integer id;

    /**
     * 审核状态(1待审核 2审核通过 3审核不通过)
     */
    @ApiModelProperty(value = "审核状态(1待审核 2审核通过 3审核不通过)", dataType = "int")
    private int auditStatus;

    /**
     * 审核备注,不通过需要填写备注
     */
    @ApiModelProperty(value = "审核备注,不通过需要填写备注", dataType = "String")
    private String auditRemark;

    /**
     * 审核人名称
     */
    @ApiModelProperty(value = "审核人名称", dataType = "int")
    private String auditor;

    /**
     * 审核时间
     */
    @ApiModelProperty(value = "审核时间", dataType = "Date")
    private Date auditTime;

    public TravelPlanAuditResultsVO(TravelPlan travelPlan) {
        if (travelPlan != null) {
            BeanUtil.copyProperties(travelPlan, this);
        }
    }
}
